import Vue from 'vue/dist/vue.js'
import Router from 'vue-router';
import Index from '@/page/index';
import Login from '@/page/login';
import SmallHomeOne from '@/page/one';
import SmallHomeTwo from '@/page/two';
import SmallHomeThree from '@/page/three';
import Vuex from 'vuex'

Vue.use(Router);
Vue.use(Vuex);

export default new Router({
  routes: [{
    path: '/',
    component: Login,
    name: 'login'
  },
  {
    path: '/index',
    component: Index,
    name: 'index',
    children :[
      {
        path:'/one',
        component:SmallHomeOne,
        name :"SmallHomeOne"
      },
      {
        path:'/two',
        component:SmallHomeTwo,
        name :"SmallHomeTwo"
      },
      {
        path:'/three',
        component:SmallHomeThree,
        name :"SmallHomeThree"
      },
    ]
  }]
})
